package com.intelligentcar.springboot.service.serverImpl;

import com.intelligentcar.springboot.bean.City;
import com.intelligentcar.springboot.mapper.CityMapper;
import com.intelligentcar.springboot.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CityServerImpl implements CityService {

    @Autowired
    private CityMapper cityMapper;

    @Override
    public List<City> Lookcity(String cityName) {
        return cityMapper.Lookcity(cityName);
    }

    @Override
    public List<City> selectTimecity(String addTime) {
        return cityMapper.selectTimecity(addTime);
    }

    @Override
    public List<City> Lookcity2() {
        return cityMapper.Lookcity2();
    }

    @Override
    public int selectcity() {
        return cityMapper.selectcity();
    }

    @Override
    public int updatecity(City city) {
        return cityMapper.updatecity(city);
    }

    @Override
    public int deletecity(Object cityId) {
        return cityMapper.deletecity(cityId);
    }

    @Override
    public int addcity(City city) {
        return cityMapper.addcity(city);
    }
}
